package com.ec.edu.application;

import com.ec.edu.config.ApplicationContextProvider;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(basePackages = "com.ec.edu")
public class NettyApplication {

	private static ApplicationContext applicationContext;

	public static void main(String[] args) {
		applicationContext = SpringApplication.run(NettyApplication.class, args);

		ApplicationContextProvider.setApplicationContext(applicationContext);
	}
}
